<!--@if($oDocument->getCommentCount())-->
	
	{@ $_comment_list = $oDocument->getComments() }
	<!--@foreach($_comment_list as $key => $comment)-->
		<tr class="separator">
			<td class="center lightGray">
				<a href="#popup_menu_area" class="member_{$comment->member_srl}" onclick="return false">{$comment->getNickName()}</a>
			</td>
			<td class="left lightGray">
				<a name="comment_{$comment->comment_srl}"></a>
				<p class="subject"><a href="#comment_{$comment->comment_srl}">#</a><span> {$lang->post_subject}:</span>Re: {$oDocument->getTitle()}</p>
				<p class="postDate"><span>{$lang->post_date}:</span> {$comment->getRegdate('d.m.Y')}</p>
			</td>
		</tr>
		<tr class="separator">
			<td class="top memberInfo">
				<p class="avatar">
					<!--@if($comment->getProfileImage())-->
						<img src="{$comment->getProfileImage()}" alt="profile" class="commentProfileImage" />
					<!--@else-->
					<img src="images/common/avatar.jpg">
					<!--@end-->
				</p>
				<p class="additionalInfo"><span>{$lang->registered}: </span>{$comment->getRegdate('d/m/Y')}</p>
				<!--@if($grant->manager || $module_info->display_ip_address!='N')-->
				<p class="additionalInfo"><span>{$lang->ip}: </span>{$comment->getIpaddress()}</p>
				<!--@end-->
			</td>
			<td class="top">
				{html_entity_decode($comment->getContentText())}
			</td>
		</tr>
				
		<tr class="separator">
			<td>
				<p class="attachment">
				<!--@if($grant->manager) -->
				<a href="{getUrl('act','dispForumBanUser','document_srl',$comment->document_srl,'member_srl',$comment->member_srl,'ipaddress',$comment->ipaddress)}"><img src="images/common/ban-user.png"></a>
				<!--@end--></p>
			</td>
			<td class="right">
				<!--@if($comment->isGranted() || !$comment->get('member_srl'))-->
				<a href="{getUrl('act','dispForumDeleteComment','comment_srl',$comment->comment_srl,'entry','')}" class="forumButton blue commentDelete"><span class="outer"><span class="inner">{$lang->cmd_delete}</span></span></a>
				<a href="{getUrl('act','dispForumModifyComment','comment_srl',$comment->comment_srl,'entry','')}" class="forumButton blue commentEdit"><span class="outer"><span class="inner">{$lang->cmd_modify}</span></span></a> 
				<!--@end-->
				<!--  <a href="{getUrl('act','dispForumReplyComment','comment_srl',$comment->comment_srl)}" class="button green"><span>{$lang->cmd_reply}</span></a> -->
				<!--@if(Context::get('is_logged')) -->
				<a href="{getUrl('act','dispForumReplyComment','comment_srl',$comment->comment_srl,'quote','Y','entry','')}" class="forumButton blue comment"><span class="outer"><span class="inner">{$lang->cmd_quote}</span></span></a> 
				<!--@else-->
				<a href="{getUrl('act','dispMemberLoginForm','comment_srl',$comment->comment_srl,'quote','Y')}" class="forumButton blue comment"><span class="outer"><span class="inner">{$lang->cmd_quote}</span></span></a> 
				<!--@end-->
				
				
				<!--@if($comment->get('voted_count')!=0 || $comment->get('blamed_count') != 0)-->
				<div class="voted">
					({$lang->voted_count}:
					<strong>{$comment->get('voted_count')?$comment->get('voted_count'):0}</strong> / <strong>{$comment->get('blamed_count')?$comment->get('blamed_count'):0}</strong>)
				</div>
				<!--@end-->
			</td>
		</tr>
		
		<!--@if($comment->hasUploadedFiles())-->
		<tr class="separator">
			<td>
				<p class="attachment"><span>{$lang->uploaded_file}:</span></p>
			</td>
			<td>
				{@ $_uploaded_files = $comment->getUploadedFiles() }
				<ul class="filesList">
					<!--@foreach($_uploaded_files as $key => $file)-->
					<li>
						<a href="{getUrl('')}{$file->download_url}">
							{$file->source_filename}
							<span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download{number_format($file->download_count)}]</span>
						</a>
					</li>
					<!--@end-->
				</ul>
			</td>
		</tr>
		<!--@end-->
		<tr class="separator threadSeparator">
			<td class="mediumGray">
			</td>
			<td class="mediumGray">
			</td>
		</tr>
	<!--@end-->
	</tbody>
	</table>

    <!--@if($oDocument->comment_page_navigation)-->
		<div class="pagination a1">
			<a href="{getUrl('cpage',1,'comment_srl','')}" class="prevEnd">{$lang->first_page}</a> 
			<!--@while($page_no = $oDocument->comment_page_navigation->getNextPage())-->
				<!--@if($cpage == $page_no)-->
					<strong>{$page_no}</strong> 
				<!--@else-->
					<a href="{getUrl('cpage',$page_no,'comment_srl','')}">{$page_no}</a>
				<!--@end-->
			<!--@end-->
			<a href="{getUrl('cpage',$oDocument->comment_page_navigation->last_page,'comment_srl','')}" class="nextEnd">{$lang->last_page}</a>
		</div>
    <!--@end-->

<!--@else-->
</tbody>
</table>
<!--@end-->